package com.woniu.microworkorderserver.workexaminemag.service.impl;

import com.woniu.microcommonsserver.entity.WorkListInfoEntity;
import com.woniu.microworkorderserver.workexaminemag.mapper.WorkExamineMapper;
import com.woniu.microworkorderserver.workexaminemag.service.WorkExamineService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * 我的审查实现类
 */
@Transactional(readOnly = true)
@Service
public class WorkExamineImpl implements WorkExamineService {

    @Resource
    private WorkExamineMapper workExamineMapper;


    @Transactional(isolation = Isolation.REPEATABLE_READ,rollbackFor = Exception.class)
    @Override
    public int examine(WorkListInfoEntity workListInfoEntity) {


     workExamineMapper.examine(workListInfoEntity);

        return 1;
    }
}
